<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head>
    <title th:text="${pageTitle}"></title>
    <div data-th-replace="layout/head-top"></div>
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInLeft" style="height: calc(100% - 40px)">
        <th:block th:if="${type}==null" >
            <div data-th-replace="common/functionDepict"></div>
        </th:block>
        <div class="testPaper-main">
            <div class="row">
                <div class="col-sm-12">
                    <div class="ibox float-e-margins m-r">
                        <div class="ibox-title">
                            <h5>试卷信息</h5>
                        </div>
                        <div class="ibox-content pt10" id="question-list-box">
                            <div class="text-center">
                                <h3><span class="fs20 c-222" th:text="${examRecord['name']}"></span></h3>
                                <h4>试卷类型-
                                <samp th:if="${examRecord['type']}==1">仿真测验</samp>
                                <samp th:if="${examRecord['type']}==2">考点练习</samp>
                                <samp th:if="${examRecord['type']}==3">错题练习</samp>
                                <samp th:if="${examRecord['type']}==4">自由组卷</samp>
                                </h4>
                                <h5>
                                    <samp th:if="${examRecord['mode']}==1">
                                        时间：<span th:text="${examRecord['answerTime']}+'分钟'"></span>&nbsp;
                                    </samp>
                                    考试用时：<span th:text="${#numbers.formatDecimal(examRecord['examTime']/60,1,0,'POINT')}+'分'+${examRecord['examTime']}%60 +'秒'"></span>&nbsp;
                                    总分：<span th:text="${examRecord['score']}+'分'"></span>&nbsp;
                                    提交时间：<span th:text="${#strings.substring(examRecord['createTime'],0,16)}"></span>
                                </h5>
                            </div>
                            <!-- 试题列表内容，开始 -->
                            <!-- 试题列表内容，结束 -->
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 答题卡开始 -->
    <div class="tp-marking-right-bx">
        <div class="tp-mrb-bx">
            <div class="tp-marking-rb-wrap">
                <div class="ibox-title">
                    <div class="pull-right">
                        <span class="c-green fs12"><i class="fa fa-circle"></i> 正确</span>
                        <span class="c-666 fs12"><small class="ic-b-halfRight"><i class="fa fa-circle"></i></small> 半对</span>
                        <span class="c-red fs12"><i class="fa fa-circle"></i> 错误</span>
                    </div>
                    <h5>答题卡</h5>
                </div>
                <div class="m-l m-r m-b" id="card-list-box">
                    <!-- 答题卡内容 -->
                </div>
            </div>
            <div th:if="${examRecord['status']}==2 and ${examRecord['marking']}==1 and ${examRecord['marked']}==1" class="tp-mrb-foot">
                <button type="button" class="btn btn-danger" th:attrappend="data-id=${examRecord['id']}" id="saveMarkFinish"> 保存发布</button>
                <button type="button" class="btn btn-info" id="saveMarkReturn"> 保存返回</button>
            </div>
        </div>
    </div>
    <div data-th-replace="layout/head-footer"></div>
    <div style="display: none;">
        <input id="examRecordId" th:value="${examRecord['id']}"/>
        <input id="userId" th:value="${examRecord['userId']}"/>
        <input id="status" th:value="${examRecord['status']}"/>
        <input id="type" th:value="${examRecord['type']}"/>
        <input id="marking" th:value="${examRecord['marking']}"/>
        <input id="marked" th:value="${examRecord['marked']}"/>
    </div>
    <script th:src="@{{path}/admin/business/classes/task/task-record-info.js?v={v}(path=${staticPath},v=${v})}"></script>
    <script th:src="@{{path}/admin/business/classes/task/load-data.js?v={v}(path=${staticPath},v=${v})}"></script>
</body>
</html>